package com.example.newsmanager.entity.DTO;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UpdateAuthDTO {
    @NotNull(message = "账号不能为null")
    @NotEmpty(message = "账号不能为空")
    private String userId;

    @NotNull(message = "身份不能为null")
    @Min(value = 1,message = "最低设置权限为普通用户")
    @Max(value = 2,message = "最高设置权限为管理员")
    private Integer userType;
}
